#pragma once

#include <iostream>

#define Die(code)   \
    do              \
    {               \
        exit(code); \
    } while (0);




#define CONV(v) (struct sockaddr *)(v)

enum
{
    USAFE_ERR = 1,
    SOCKET_ERR,
    BIND_ERR,
    LISTEN_ERR,
    ACCEPT_ERR,
    EPOLL_CREATE_ERR,
    EPOLL_CTL_ERR
};

const int gdefaultsockfd = -1;
const int gbacklog = 8;
